<div class="layui-container fly-marginTop fly-user-main">
    <!-- 左菜单栏 -->
    {include file="common/menu"}

    <div class="fly-panel fly-panel-user" pad20>
        <!--
    <div class="fly-msg" style="margin-top: 15px;">
      您的邮箱尚未验证，这比较影响您的帐号安全，<a href="activate.html">立即去激活？</a>
    </div>
    -->


        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li data-type="mine-jie" lay-id="index" class="layui-this">我发的帖（<span>{$posts}</span>）</li>
            </ul>
            <div class="layui-tab-content" style="padding: 20px 0;">
                <div class="layui-tab-item layui-show">
                    <ul class="mine-view jie-row">

                        {foreach $postlist as $item}
                        <li>
                            <a class="jie-title" href="{:url('home/index/info',['postid'=>$item.id])}"
                                target="_blank">{$item.title}</a>
                            <i>{$item.createtime}</i>

                            {if condition="!$item.accept"}
                            <a class="mine-edit" href="{:url('home/post/edit',['postid'=>$item.id])}">编辑</a>
                            {/if}
                            {if condition="!$item.visit"}
                            <em>无人阅读/{$item.comment_total}人评论</em>
                            {else if condition="$item.visit"}
                            <em>{$item.visit}人阅读/{$item.comment_total}评论</em>
                            {/else}
                            {/if}

                        </li>
                        {/foreach}

                    </ul>

                    <div id="LAY_page"></div>
                </div>
            </div>
        </div>
    </div>
</div>